package org.com.yz.dubbo.web.ctrl;


import com.alibaba.dubbo.config.annotation.Reference;
import org.com.yz.dal.dao.model.BankCard;
import org.com.yz.dubbo.api.service.IBalanceQueryService;
import org.com.yz.dubbo.api.service.IBankCardService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import java.util.List;

/**
 * @ClassName weatherCtr
 * @Author wzc
 * @Date 2018/8/6 9:59
 **/
@RestController
public class TestController {


    @Reference(version = "1.0.0", timeout = 30000, retries = 0)
    private IBankCardService iBalanceQueryService;

    /**
     * @Description: 网络请求接口
     * @param  []
     * @author wzc
     * @date 2018/8/6 10:08
     * */
    @RequestMapping("/api/test.htm")
    public String weather()  {
//       List<BankCard> list= iBalanceQueryService.testS();
//       for (BankCard bankCard:list){
//           System.out.println(bankCard );
//       }
        return "成功";
    }




}
